#ifndef _TASK_SENSOR_DECT_H_
#define _TASK_SENSOR_DECT_H_

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "key.h"
#include "encode.h"
#include "../my_driver/adc_driver.h"

#include "../Product_Config.h"
#include "../LOG.h"
typedef enum
{
    ACT_NONE, //0
    ACT_KEY=1, //1 按键源
    ACT_ENCODE, //2 编码器源
    ACT_ENUM,
}ACT_SOURCE;


typedef struct 
{
    u8 drvAct;
    ACT_SOURCE act_source;
}key_act_param; //按键枚举行

extern QueueHandle_t sensor_dect_queue;

void task_sensor_dectect_init();
u8 get_adc_read_value();

#endif  // _TASK_SENSOR_DECT_H_